import { axios } from '@/utils/request'
import config from '@/config/appConfig'
import querystring from 'querystring'

export function getList (parameter) {
  return axios({
    url: config.url,
    method: 'get',
    params: {
      _gp: 'admin.groupShop',
      _mt: 'queryGroupShop',
      ...parameter
    }
  })
}

export function addGroupShopSpu (parameter) {
  return axios({
    url: config.url,
    method: 'post',
    data:querystring.stringify( {
      '_gp': 'admin.groupShop',
      '_mt': 'addGroupShopSpu',
      ...parameter
    })
  })
}